<template>
	<view>
		<view class="pt-5">
			<view class="flex" style="justify-content: center;">
				<view class="">
					<text class="fw-8">活动公告</text>
				</view>
			</view>
		</view>
		<view class="px-10">
			<view class="u-content pt-5">
				<u-parse :content="content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	import {getNotic} from "@/static/js/api/notice.js"
	export default {
		data() {
			return {
				content: ""
			}
		
	},
	onShow() {
		this.getNotic()
	},
	methods: {
		async getNotic(){
			let res = await getNotic()
			if(res.code !=="1")return
			this.content = res.msg
			
		}
	}
	}
</script>

<style>

</style>